<template>
    <div>
    <!-- <el-card class="box-card font-left">
        <div slot="header" class="clearfix">
            <span>创建频道</span>
        </div>
        <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="频道名称">
                <el-input v-model="form.channelName"></el-input>
            </el-form-item>
            <el-form-item label="创建人" >
                <el-input v-model="form.creater" readonly></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSubmit(form)">立即创建</el-button>
                <el-button>取消</el-button>
            </el-form-item>
        </el-form>
    </el-card> -->
    </div>
</template>

<script>
    export default {
        data() {
            return {
                form: {
                    channelName: '',
                    creater: this.$store.state.userInfo.count,
                    desc: ''
                }
            }
        },
        methods: {
            // onSubmit(form) {
            //     console.log(form);
            //     this.$axios.post("/Nav/addNav",{Tile:form.channelName,UID:this.$store.state.userInfo.UID}).then(res=>{
            //         const result = res.data.d;
            //         if(result.status==false){
            //             return this.$message.error(result.message);
            //         }
            //         this.$message.success(result.message);
            //     })
            // } 
            
        }
    }
</script>

<style scoped>
    .box-card{
        margin: 5% 10%
    }
    .font-left{
        text-align:left;
        font-weight:bold
    }
</style>